home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1865 / 1865.xpi / chrome / adblockplus.jar / content / ui / fennecOverlay.xul < prev    next >
Extensible Markup Language  |  2010-01-07  |  2KB  |  53 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.      - Version: MPL 1.1
  5.      -
  6.      - The contents of this file are subject to the Mozilla Public License Version
  7.      - 1.1 (the "License"); you may not use this file except in compliance with
  8.      - the License. You may obtain a copy of the License at
  9.      - http://www.mozilla.org/MPL/
  10.      -
  11.      - Software distributed under the License is distributed on an "AS IS" basis,
  12.      - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.      - for the specific language governing rights and limitations under the
  14.      - License.
  15.      -
  16.      - The Original Code is Adblock Plus.
  17.      -
  18.      - The Initial Developer of the Original Code is
  19.      - Fabrice Desr├⌐.
  20.      - Portions created by the Initial Developer are Copyright (C) 2006-2009
  21.      - the Initial Developer. All Rights Reserved.
  22.      -
  23.      - Contributor(s):
  24.      -
  25.      - ***** END LICENSE BLOCK ***** -->
  26.  
  27. <?xul-overlay href="chrome://adblockplus/content/ui/overlayGeneral.xul"?>
  28.  
  29. <overlay id="abp-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  30.     <!-- Window extensions -->
  31.     <window id="main-window">
  32.         <box id="abp-hooks"
  33.             init="
  34.                 let loader = Cc['@mozilla.org/moz/jssubscript-loader;1'].getService(Ci.mozIJSSubScriptLoader);
  35.                 loader.loadSubScript('chrome://adblockplus/content/ui/fennecOverlay.js');
  36.             "
  37.             getBrowser="return window.getBrowser();"
  38.             addTab="
  39.                 /* work around bug 528406 and bug 531071 */
  40.                 var url = arguments[0];
  41.                 window.BrowserUI.newTab('about:blank');
  42.                 Cc['@mozilla.org/timer;1'].createInstance(Ci.nsITimer)
  43.                                                                     .initWithCallback(function()
  44.                 {
  45.                     window.getBrowser().loadURI(url, null, null);
  46.                     window.BrowserUI.closeAutoComplete(false);
  47.                 }, 100, Ci.nsITimer.TYPE_ONE_SHOT);"
  48.             getContextMenu="return null"
  49.             getToolbox="return null"
  50.             getDefaultToolbar="return null"/>
  51.     </window>
  52. </overlay>
  53.